package com.fafa.yygh.hosp.repository;

import com.fafa.yygh.model.hosp.Department;
import org.springframework.data.mongodb.repository.MongoRepository;
import org.springframework.stereotype.Repository;

/**
 * @author Sire
 * @version 1.0
 * @date 2022-02-11 17:59
 */
@Repository
public interface DepartmentRepository extends MongoRepository<Department, String> {
    /**
     * 通过医院编号和科室编号来查询科室
     *
     * @param hoscode
     * @param depcode
     * @return
     */
    public Department getDepartmentByHoscodeAndDepcode(String hoscode, String depcode);
}
